<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
      <ul>
          <li v-for="(item,index) in list">{{item}} == {{index}}</li>
      </ul>

      <ul>
        <li v-for="(item,index) of list">{{item}} == {{index}}</li>
    </ul>

    <ol>
        <li v-for="(val,key,index) in obj">key:{{key}}-- val:{{val}}-- {{index}}</li>
    </ol>

    <ol>
        <li v-for="(val,key,index) of obj">key:{{key}}-- val:{{val}}-- {{index}}</li>
    </ol>

    <ul>
        <li v-for="(item,index) of num" :key='item'>{{item}} --- {{index}}</li>
    </ul>
  </div>
  <script src="./vue.js"></script>
  <script>
    var vm = new Vue({
      el:'#app',
      data:{
          list: ['lemon','pineapple','melon'],
          obj: {name:"zs",age:"11",gender:"boy"},
          num: 10
      },
      methods:{
      }
     });
  </script>
</body>
</html>
